<h1>
	<?php echo $this->Html->image('bootstrap/posts.png')?>
	单页面管理
</h1>

<div class="bloc">
	<div class="title">
		<?php echo $this->element('admin/bread')?>
		<p>
			<?php //echo $this->Html->link('',array('admin'=>true,'plugin'=>false,'controller'=>'Pages','action'=>'add'),array('class'=>'new toolbar','title'=>'添加'))?>
        </p>
	</div>
<div class="grid_content">
	<!-- start content -->
	<div style="width: 100%; height: 100%">
		<table id="grid_page"></table>
		<div id="pv_page"></div>
	</div>
	<!-- end content -->
	<?php echo $paginationScript; ?>
</div>
</div>
<script type="text/javascript">
//操作
Gootop.addDataGridOp = function(){
	var url = "<?php echo $this->Html->url(array('admin'=>true,'controller'=>'Pages'),true);//链接?>";
	var ids = jQuery("#grid_page").jqGrid('getDataIDs'); 
	for(var i=0;i < ids.length;i++){
		var id = ids[i];
		op1 = '<a href="'+ url +'/edit/'+ id +'" title="edit" class="edit">编辑</a>&nbsp;';
		jQuery("#grid_page").jqGrid('setRowData',ids[i],{act:op1});
	};
};
</script>